package svgedit.japangui.actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import svgedit.japangui.JapanFrame;

@SuppressWarnings("serial")
public class RedoAction extends AbstractAction {



	JapanFrame frame;
	
    public RedoAction(JapanFrame japanFrame) {
        super("\u3084\u308A\u76F4\u3059");
        this.frame = japanFrame;
       ;
    }
	
	@Override
	public void actionPerformed(ActionEvent e) {	

		frame.getView().undoManager.redo();
        frame.undoAction.setEnabled(frame.getView().undoManager.canUndo());
        frame.redoAction.setEnabled(frame.getView().undoManager.canRedo());

		frame.getView().repaint();
		}
	
}


